package org.mq.mymq.broker.model;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName ConsumerQueueOffsetModel
 * @Description 消费者队列消费情况数据结构
 * @Author jiarong_ye
 * @Date 2025/6/16 18:26
 * @Version 1.0
 */
public class ConsumeQueueOffsetModel {
    private OffsetTable offsetTable = new OffsetTable();
    public static class OffsetTable {
        private Map<String, ConsumerGroupDetail> topicConsumerGroupDetail = new HashMap<String, ConsumerGroupDetail>();

        public Map<String, ConsumerGroupDetail> getTopicConsumerGroupDetail() {
            return topicConsumerGroupDetail;
        }

        public void setTopicConsumerGroupDetail(Map<String, ConsumerGroupDetail> topicConsumerGroupDetail) {
            this.topicConsumerGroupDetail = topicConsumerGroupDetail;
        }
    }

    public static class ConsumerGroupDetail {
        private Map<String, Map<String, String>> consumerGroupDetailMap = new HashMap<>();

        public Map<String, Map<String, String>> getConsumerGroupDetailMap() {
            return consumerGroupDetailMap;
        }

        public void setConsumerGroupDetailMap(Map<String, Map<String, String>> consumerGroupDetailMap) {
            this.consumerGroupDetailMap = consumerGroupDetailMap;
        }
    }

    public OffsetTable getOffsetTable() {
        return offsetTable;
    }

    public void setOffsetTable(OffsetTable offsetTable) {
        this.offsetTable = offsetTable;
    }
}
